package com.corpgovernment.organization.vo;

import lombok.Data;

@Data
public class BindGetVerifyCodeRspVo {

    private String errorCode;

    private String errorMessage;

    public static BindGetVerifyCodeRspVo failed(String errorCode, String errorMessage){
        BindGetVerifyCodeRspVo bindGetVerifyCodeRspVo = new BindGetVerifyCodeRspVo();
        bindGetVerifyCodeRspVo.setErrorCode(errorCode);
        bindGetVerifyCodeRspVo.setErrorMessage(errorMessage);
        return bindGetVerifyCodeRspVo;
    }

    public static BindGetVerifyCodeRspVo failed(){
        BindGetVerifyCodeRspVo bindGetVerifyCodeRspVo = new BindGetVerifyCodeRspVo();
        bindGetVerifyCodeRspVo.setErrorCode("500");
        bindGetVerifyCodeRspVo.setErrorMessage("获取验证码失败，请稍后重试");
        return bindGetVerifyCodeRspVo;
    }

    public static BindGetVerifyCodeRspVo success(String errorCode, String errorMessage){
        BindGetVerifyCodeRspVo bindGetVerifyCodeRspVo = new BindGetVerifyCodeRspVo();
        bindGetVerifyCodeRspVo.setErrorCode(errorCode);
        bindGetVerifyCodeRspVo.setErrorMessage(errorMessage);
        return bindGetVerifyCodeRspVo;
    }
}
